﻿using RpcCentral.Service.Interface;
using WeDonekRpc.Model;

namespace RpcCentral.Service.Event
{
    internal class GetServerListEvent : Route.TcpRoute<GetServerList, GetServerListRes>
    {
        private IGetServiceListService _Service;
        public GetServerListEvent(IGetServiceListService service) : base()
        {
            _Service = service;
        }
        protected override GetServerListRes ExecAction(GetServerList param)
        {
            return _Service.GetServerList(param, param.Source);
        }
    }
}
